﻿@{
    Layout = "~/Views/Shared/_Root.cshtml";
}

<header>
    <div>
        <div class="logo">
            <a href="@Url.Action(Loc.Act("Home").Ctrl("Static").NoArea().Localized())"><img src="@Url.Theme("Images/logo.png")" alt="@T(Res.In("WebPortal").Of("Navigation").Name("Home"))" /></a>       
        </div>
        <div class="nav">
            @{
                Html.RenderPartial("~/Views/Shared/_Search.cshtml");
            }
            <nav class="user">
            @if(Svc.IsAuthenticated)
            {
                <span>@T(Res.Name("Identity"), JDM.String(Svc.Account.Email))</span>
            }
            @{
                Html.RenderPartial("_Access");
            }
            </nav>  
            <nav class="menu">
            @{
                Html.RenderPartial("_Menu");
            }
            </nav>
        </div>
    </div>
</header>
<section class="content">
    <section class="main">
        <header>
            <nav class="breadcrumb">
                <span class="separator">/</span>
                <a href="@Url.Action(Loc.Act("Home").Ctrl("Static").NoArea().Localized())">@T(Res.In("WebPortal").Of("Navigation").Name("Home"))</a>
                @RenderSection("Breadcrumb", false)
            </nav>
            <h1>@ViewBag.PageTitle</h1>
            <nav class="toolbar">
                @RenderSection("Toolbar", false)
            </nav>
        </header>
        @RenderBody()
    </section>
    <section class="sidebar">
        @RenderSection("Sidebar", false)
        @{
            Html.RenderPartial("_History");
            Html.RenderAction(Loc.Act("_Index").Ctrl("Adv").NoArea().Localized());
        }
    </section>
</section>
<div class="clear"></div>
<footer>
    <div>
    @{
        Html.RenderPartial("_Links");
        Html.RenderPartial("_Copyrights");
        Html.RenderAction(Loc.Act("_Locales").Ctrl("Configuration").NoArea());
    }
    </div>
</footer>